#ifndef __COMPASS_H
#define __COMPASS_H

#include "Common.h"
#include "LSM303/LSM303.h"

class Compass{
private:
    LSM303* _compass;

    uint16_t _lastHeading;
    uint16_t _heading;

    bool _headingChanged;

public:
    Compass();
    ~Compass();

    void measureHeading();
    uint16_t getHeading();
    bool headingChanged();
};

#endif // __COMPASS_H
